<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title> 天津麻将后台管理</title>

    <meta name="keywords" content="">
    <meta name="description" content="">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="favicon.ico"> <link href="__STATIC__/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__STATIC__/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/css/new_file.css" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs" style="font-size:20px;">
                                        <i class="fa fa-area-chart"></i>
                                        <strong class="font-bold">天津麻将</strong>
                                    </span>
                                </span>
                            </a>
                        </div>
                        <div class="logo-element">天津麻将
                        </div>
                    </li>
                    <li class="line dk"></li>

                    <li>
                        <a href="#">
                            <i class="fa fa fa-bar-chart-o"></i>
                            <span class="nav-label">管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('Player/gameplayer')}">玩家管理</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('system/notice')}">公告管理</a>
                            </li>
                             <li>
                                <a class="J_menuItem" href="{:url('email/mail')}">邮件管理</a>
                            </li>
                             <li>
                                <a class="J_menuItem" href="{:url('Club/club')}">亲友圈管理</a>
                            </li>
                             <li>
                                <a class="J_menuItem" href="{:url('Money/money')}">提现管理</a>
                            </li>
                             <li>
                                <a class="J_menuItem" href="{:url('Order/order')}">订单管理</a>
                            </li>

                        </ul>
                    </li>
                	 <li>
                        <a href="javascript:;"><i class="fa fa-bar-chart-o"></i> <span class="nav-label">数据</span><span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="{:url('data/datagk')}">概況</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('data/datawf')}">玩法</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('data/datalc')}">留存</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('data/datass')}">实时数据</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('data/dataczfx')}">充值分析</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('data/dataclub')}">亲友圈统计</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('data/president')}">高级会长</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="{:url('data/regionaldata')}">地区数据</a>
                            </li>
                            <!--<li>-->
                                <!--<a class="J_menuItem" href="{:url('data/datahj')}">玩家黄钻收支表</a>-->
                            <!--</li>-->
                            <!--</li>-->
                        </ul>
                    </li>
                    <li>
                            <a href="javascript:;"><i class="fa fa-desktop"></i> <span class="nav-label">权限</span><span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a class="J_menuItem" href="{:url('rule/rule_list')}">权限管理</a>
                                </li>
                                <li>
                                    <a class="J_menuItem" href="{:url('rule/rule_group')}">用户组管理</a>
                                </li>
                                <li>
                                    <a class="J_menuItem" href="{:url('account/account_details')}">后台账号管理</a>
                                </li>
                            </ul>
                        </li>
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                    	<a class="navbar-minimalize minimalize-styl-2 btn btn-info " href="#"><i class="fa fa-bars"></i></a>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                       <li class="dropdown" onclick="modify()">
                            <a class="dropdown-toggle count-info"  data-toggle="dropdown" >修改密码</a>
                        </li>
                       <li class="dropdown" onclick="location='__ROOT__/index.php/admin/user/loginOut'">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">退出</a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe id="J_iframe" width="100%" height="100%" src="index.html?v=4.0" frameborder="0" data-id="index_v1.html" seamless></iframe>
            </div>
        </div>
        <!--右侧部分结束-->
    </div>
    <div class="modify_zz">
    	<div class="modify_k">
    		<p>
    			<span>原始密码</span>
    			<input type="text" id ="old_pwd"/>
    		</p>
    		<p>
    			<span>更新密码</span>
    			<input type="text" id ="new_pwd"/>
    		</p>
    		<p>
    			<span>重复密码</span>
    			<input type="text"  id ="new_pwd2"/>
    		</p>
	    	<div class="modify_anniu">
	    		<button onclick="modify_pwd()">确定</button>
	    		<button onclick="modify_qx()">取消</button>
	    	</div>
    	</div>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__STATIC__/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="__STATIC__/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="__STATIC__/js/plugins/layer/layer.min.js"></script>
    <!-- 自定义js -->
    <script src="__STATIC__/js/hAdmin.js?v=4.1.0"></script>
    <script type="text/javascript" src="__STATIC__/js/index.js"></script>
    <!-- 第三方插件 -->
    <script src="__STATIC__/js/plugins/pace/pace.min.js"></script>
	<script>
		function modify(){
			$(".modify_zz").show();
		}
		function modify_qx(){
			$(".modify_zz").hide();
		}
        function modify_pwd(){
            var old_pwd= $("#old_pwd").val();
            var new_pwd= $("#new_pwd").val();
            var new_pwd2= $("#new_pwd2").val();
            if(new_pwd != new_pwd2){
                alert("两次密码输入不一致，请重新输入");
                return false;
            }
            $.ajax({
                type: "post",
                url: "{:url('user/Change_password')}",
                data: {
                    'old_password':old_pwd,
                    'new_password':new_pwd,
                },
                dataType: "json",
                success: function(e) {
                    alert(e.msg);
                    $(location).attr('href',e.url);
                },
                error: function(e) {
                    console.log(e);
                    // var json = eval("("+e+")");
                }
            });
        }
	</script>
</body>

</html>
